package com.dnzx.model.system;

import org.apache.ibatis.type.Alias;
import org.dnzx.framework.orm.LongBaseEntity;

import io.swagger.annotations.ApiModelProperty;

/**
 * <p>系统后台用户实体</p>
 *
 * @author Steven
 * @version V1.0
 * @Package com.dnzx.vo
 * 
 * @date 2017/9/15 10:00
 */
@Alias("userBO")
public class UserBO extends LongBaseEntity {
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="姓名")
    private String name;
	@ApiModelProperty(value="性别")
    private String sex;
	@ApiModelProperty(value="电话")
    private String mobile;
	@ApiModelProperty(value="状态")
    private String status;
	@ApiModelProperty(value="邮箱地址")
    private String email;
	@ApiModelProperty(value="身份证号")
    private String idCard;
	@ApiModelProperty(value="密码")
    private String password;
	@ApiModelProperty(value="所属角色ID")
    private Long roleId;
	
	// 以下字段为非数据库字段
	@ApiModelProperty(value="性别名称")
	private String sexName;// 冗余字段，用于列表展示
	@ApiModelProperty(value="状态名称")
    private String statusName;
	@ApiModelProperty(value="所属角色名称")
    private String roleName;// 冗余字段，用于列表展示
	@ApiModelProperty(value="token")
	private String token;// 冗余字段
	
	@ApiModelProperty(value="新密码")
	private String newPassword;
	
	@ApiModelProperty(value="验证码")
	private String code;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public String getSexName() {
		return sexName;
	}

	public void setSexName(String sexName) {
		this.sexName = sexName;
	}

	public String getStatusName() {
		return statusName;
	}

	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getNewPassword() {
		return newPassword;
	}

	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
}
